package com.article.entity;

import java.sql.Timestamp;

/**
 * Article entity. @author MyEclipse Persistence Tools
 */

public class Article implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 4513063109176354011L;
	// Fields

	private Integer id;
	private Editor editor;
	private Category category;
	private String title;
	private String content;
	private Timestamp addTime;
	private Integer clickTimes;

	// Constructors

	/** default constructor */
	public Article() {
	}

	/** full constructor */
	public Article(Editor editor, Category category, String title,
			String content, Timestamp addTime, Integer clickTimes) {
		this.editor = editor;
		this.category = category;
		this.title = title;
		this.content = content;
		this.addTime = addTime;
		this.clickTimes = clickTimes;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Editor getEditor() {
		return this.editor;
	}

	public void setEditor(Editor editor) {
		this.editor = editor;
	}

	public Category getCategory() {
		return this.category;
	}

	public void setCategory(Category category) {
		this.category = category;
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Timestamp getAddTime() {
		return this.addTime;
	}

	public void setAddTime(Timestamp addTime) {
		this.addTime = addTime;
	}

	public Integer getClickTimes() {
		return this.clickTimes;
	}

	public void setClickTimes(Integer clickTimes) {
		this.clickTimes = clickTimes;
	}

}